﻿using System;
using System.Collections.Generic;
using System.Text;
using HZ.Supervise.IBLL;
using HZ.Supervise.Model;
using HZ.Supervise.DAL;
namespace HZ.Supervise.BLL
{
    public class BLL_Stocks : IBLL.IBLL_Stocks
    {
        /// <summary>
        /// 医院、企业库存汇总
        /// </summary>
        /// <param name="sqlwhere"></param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public System.Data.DataTable GetHosComTotalStock(string sqlwhere, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL.DAL_Stocks.GetHosComTotalStock(sqlwhere, currentpage, pagesize, out totalrecord);
        }
        /// <summary>
        /// 医院库存
        /// </summary>
        /// <param name="sqlwhere"></param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public System.Data.DataTable GetHosTotalStock(string goodsid ,string sqlwhere, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL.DAL_Stocks.GetHosTotalStock(goodsid,sqlwhere, currentpage, pagesize, out totalrecord);
        }
        /// <summary>
        /// 企业库存
        /// </summary>
        /// <param name="sqlwhere"></param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public System.Data.DataTable GetComTotalStock(string sqlwhere, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL.DAL_Stocks.GetComTotalStock(sqlwhere, currentpage, pagesize, out totalrecord);
        }
        /// <summary>
        /// 医院库存明细
        /// </summary>
        /// <param name="sqlwhere"></param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public System.Data.DataTable GetHosTotalStockDetail(string sqlwhere, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL.DAL_Stocks.GetHosTotalStockDetail(sqlwhere, currentpage, pagesize, out totalrecord);
        }

      
    }
}
